package indi.zhifa.recipe.bailan5.coupon.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import indi.zhifa.recipe.bailan.framework.enums.entity.annotations.EnumDesc;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
@EnumDesc(name = "消费券触发条件",desc = "消费券触发条件",defaultIdx = 0)
public enum ECouponTriggerType {
    TOTAL_PRICE(1,"总价","总价到达某值可触发"),
    QUANTITY(2,"数量","购买过足够数量可触发");

    @EnumValue
    @Getter
    final int code;
    @Getter
    final String name;
    @Getter
    final String description;
}
